﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Bukstor.Admin.UI
{
    public partial class ABMTitulos : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ((Label)this.Master.FindControl("lblTitulo")).Text = "ABM-Titulos";
            if(PreviousPage!=null)
            {
                Titulos miForm=(Titulos)PreviousPage;
                txtTitulo.Text = miForm.Titulo;
                txtIsbn.Text = miForm.ISBN;
                txtIdLibro.Text = miForm.IdTitulo.ToString();
                ddlAutores.Text = miForm.Autor;
                ddlEditorial.Text = miForm.Editorial;
                imgTapa.ImageUrl = miForm.PathTapa;
                txtSinopsis.Text = miForm.Sinopsis;
                ddlSubcategorias.Text = miForm.SubCategoria;
                ddlDiscontinuo.Text = miForm.Discontinuo;
            }
        }
    }
}